package youxiao.bytezon.params.teachers;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotBlank;

public class ChangePasswordParam {
	
	@NotBlank
	private String oldPassword;
	
	@Pattern(regexp = "^(?=.*[0-9])(?=.*[!@#$%^&*])[a-zA-Z0-9!@#$%^&*]{6,20}$")
	private String newPassword;
	
	public String getOldPassword() {
		return oldPassword;
	}
	public void setOldPassword(String oldPassword) {
		this.oldPassword = oldPassword;
	}
	public String getNewPassword() {
		return newPassword;
	}
	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}
	
}
